const CDN = 'https://cdn.staticfile.org' // CDN Homepage: https://www.staticfile.org/

function splicingPluginUrl(pluginName, version, fileName) {
  let SQ_CDN = CDN
  if (typeof window !== 'undefined' && window.SQ_CDN) {
    SQ_CDN = window.SQ_CDN
  }
  return `${SQ_CDN}/${pluginName}/${version}/${fileName}`
}

export default {
  tinymceUrl: splicingPluginUrl('tinymce', '5.7.0', 'tinymce.min.js')
}
